package sample.mybatis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sample.mybatis.domain.User;
import sample.mybatis.mapper.UserMapper;
import sample.mybatis.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper userMapper;

	@Override
	public User findUserByUsername(String username) {
		User selectUser = userMapper.selectUser(username);
		return selectUser;
	}

	@Override
	public User findUserByParam(User user) {
		User u = userMapper.selectUserByParam(user);
		return u;
		
	}
	
	
	
	
	
}
